-- GENERATED SPELL FOR [Rage Talon Flamescale] --


function spell0_10083(pUnit, Event) --@Fire Nova,Self--
pUnit:FullCastSpellOnTarget(12470,pUnit)
pUnit:RegisterEvent('Sorts_10083', 2000, 1)
end

function spell1_10083(pUnit, Event) --@Fireball Volley,n/a--
pUnit:FullCastSpellOnTarget(15285,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10083', 605, 1)
end

function spell2_10083(pUnit, Event) --@Flamestrike,n/a--
pUnit:FullCastSpellOnTarget(16102,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10083', 11000, 1)
end

function Sorts_10083(pUnit, Event)
local choix_sorts_10083 = math.random(0, 2)
if choix_sorts_10083 == 0 then
pUnit:RegisterEvent('spell0_10083', 1, 1)
end
if choix_sorts_10083 == 1 then
pUnit:RegisterEvent('spell1_10083', 1, 1)
end
if choix_sorts_10083 == 2 then
pUnit:RegisterEvent('spell2_10083', 1, 1)
end
end

function mob10083_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10083', math.random(1500, 3000), 1)
end

function mob10083_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10083_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10083_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10083, 1, 'mob10083_Action')
RegisterUnitEvent(10083, 2, 'mob10083_Leave')
RegisterUnitEvent(10083, 3, 'mob10083_Kill')
RegisterUnitEvent(10083, 4, 'mob10083_Die')
